 class TreeNode {
      int val;
      TreeNode left;
      TreeNode right;
      TreeNode() {}
      TreeNode(int val) { this.val = val; }
      TreeNode(int val, TreeNode left, TreeNode right) {
          this.val = val;
          this.left = left;
          this.right = right;
      }
  }

public class Solutio {
    int count = 0;
    public int getHight(TreeNode root){
        if(root == null){
            return 0;
        }
        int leftHight = getHight(root.left);
        int rightHight = getHight(root.right);
        if(leftHight > rightHight){
            return leftHight + 1;
        }else{
            return rightHight + 1;
        }

    }
}
